from django.urls import path, re_path
from. import views
from rest_framework_simplejwt.views import (
    TokenObtainSlidingView,
)
from .views import MyTokenObtainSlidingView

urlpatterns = [
    path('login/', MyTokenObtainSlidingView.as_view(), name='login'),
    path('register/', views.UserApiView.as_view()),
    re_path(r'^mobile/(?P<mobile>1[3-9]\d{9})/$', views.MobileAPIView.as_view()),
    re_path(r'sms/(?P<mobile>1[3-9]\d{9})/$', views.SMSAPIView.as_view()),
    re_path('forget/(?P<mobile>1[3-9]\d{9})/$', views.ForgetPwdView.as_view()),
    re_path('data/(?P<pk>\d+)/$', views.UserDataView.as_view()),
    path('avatar/', views.UploadLogoView.as_view()),
    re_path('detail/(?P<pk>\d+)/$', views.UserDetailView.as_view()),
]
